package schema

import "time"

// Cache 业务端需要提供一个适配器 让框架操作到缓存
type Cache interface {
	Set(key string, value any, expire time.Duration) error
	Get(key string) (valueJson string, err error)
	Del(key string) error
	Expire(key string, expire time.Duration) error
}
